<div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body" style="height:100%;">
          <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>员工信息</legend>
          </fieldset>
          <div class="layui-form">
            <table class="layui-table" lay-size="lg">
              <colgroup>
                <col width="150">
                <col width="200">
                <col>
              </colgroup>
              <thead>
                <tr>
                  <th>姓名</th>
                  <th>电话</th>
                  <th>年龄</th>
                  <th>性别</th>
                  <th>地址</th>
                  <th>区域</th>
                  <th>状态</th>
                  <th>评分</th>
                  <th>时间</th>

                </tr>
              </thead>
              <tbody>
                <tr>
                  <td><?=$info['name']?></td>
                  <td><?=$info['phone']?></td>
                  <td><?=$info['age']?></td>
                  <td><?=c("type.sex")[$info['sex']]?></td>
                  <td><?=$info['address']?></td>
                  <td><?=$info['area']?></td>              
                  <td><?=c("type.status")[$info['status']]?></td>  
                  <td><div id="test1"></div></td>   
                  <td><?=com_time_format($info['create_time'])?></td>   
                </tr>
              </tbody>
            </table>
          </div>
      </div>
    </div>
</div>
<script>
layui.use(['form','rate'], function(){
  var $ = layui.$
  ,form = layui.form
  ,rate = layui.rate;
  form.render();
  var ue = UE.getEditor('container');
  //基础效果
  rate.render({
    elem: '#test1'
    ,value: <?=$info['score']?> //初始值
    ,half: true //开启半星
    ,readonly: true //只读
    ,setText: function(value){
      $("#score").val(value);
    }
  })
});
</script>